package com.yifeixi.validation.entity;

import com.yifeixi.validation.group.IdGroup;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色<br> 验证参数都设置符合条件的默认值
 *
 * @author YiFeiXi
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Role {

  @NotNull(groups = IdGroup.class)
  private Long id = 2L;
  @NotBlank
  private String name = "admin";
}
